<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/css/form.css"/>

<div class="wd-form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'news-entries-form',
	'enableClientValidation'=>true,
    'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>
	<fieldset>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="wd-input">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>30)); ?>
		<?php echo $form->error($model,'name'); ?>
       
	</div>

	<div class="wd-input">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->textField($model,'type',array('size'=>30)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>
	
    
    <div class="wd-submit buttons">
        <a href="<?php echo Yii::app()->createUrl("/products/manage_product/admin"); ?>"><input type="button" value="Cancel" /></a>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
	</fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->